package com.ss.android.article.base.feature.video;

import com.ss.android.image.model.ImageInfo;
import org.json.JSONObject;

public class RelatedVideoItem {
    public long mAggrType;
    public long mGid;
    public ImageInfo mImageInfo;
    public long mItemId;
    public String mOpenUrl;
    public String mTitle;

    public RelatedVideoItem() {

    }

    public static RelatedVideoItem extractItem(JSONObject arg4) {
        RelatedVideoItem v0_1;
        RelatedVideoItem v1 = null;
        if(arg4 != null) {
            try {
                v0_1 = new RelatedVideoItem();
                v0_1.mTitle = arg4.optString("title");
                v0_1.mImageInfo = ImageInfo.fromJson(arg4.getJSONObject("middle_image"), false);
                v0_1.mGid = arg4.optLong("group_id");
                v0_1.mItemId = arg4.optLong("item_id");
                v0_1.mAggrType = arg4.optLong("aggr_type");
                v0_1.mOpenUrl = arg4.optString("open_url");
            }
            catch(Exception v0) {
                v0_1 = v1;
            }

            v1 = v0_1;
        }

        return v1;
    }
}

